package cn.com.jinhao.hotline.commons.vo.business;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * hotline-spring-cloud
 * <p>Description:撤单信息请求类 </p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2020/4/8
 * @since 2020-04-08
 */
@Data
@ApiModel(value = "CancelWorkOrderRequestVO", description = "撤单信息请求类")
public class CancelWorkOrderRequestVO {
    /**
     * 事件编码
     */
    @ApiModelProperty(value = "事件编码")
    @NotNull(message = "事件编码不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "事件编码必须为数字")
    protected String eventInformationCode;

    /**
     * 派单编码
     */
    @ApiModelProperty(value = "派单编码")
    @NotNull(message = "派单编码不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "派单编码必须为数字")
    private String dispatchCode;
    /**
     * 数据快照
     */
    @ApiModelProperty(value = "数据快照")
    private String evrv;
    /**
     * 申请单位编码
     */
    @ApiModelProperty(value = "申请单位编码")
    @NotNull(message = "申请单位编码不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "申请单位编码必须为数字")
    private String supplyDeptCode;
    /**
     * 申请单位
     */
    @ApiModelProperty(value = "申请单位")
    @NotNull(message = "申请单位不能为空")
    private String supplyDept;
    /**
     * 申请人编码
     */
    @Column(name = "st$operCodeA")
    @ApiModelProperty(value = "申请人编码")
    @NotNull(message = "申请人编码不能为空")
    @Pattern(regexp = "^[0-9]*$", message = "申请人编码必须为数字")
    private String supplierCode;
    /**
     * 申请人
     */
    @ApiModelProperty(value = "申请人")
    @NotNull(message = "申请人不能为空")
    private String supplier;
    /**
     * 申请提交时间
     */
    @ApiModelProperty(value = "申请提交时间")
    private Date supplyConfirmDate;
    /**
     * 申请附言
     */
    @ApiModelProperty(value = "申请附言")
    private String supplyDemo;

    /**
     * 超时处理
     */
    @ApiModelProperty(value = "超时处理")
    private Integer timeoutProcess;
}
